﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Athanor.Gui
{
    public class TextureArray : ITextureGroup
    {
        Texture2D[] textures;
        Rectangle rect;

        public TextureArray(Texture2D[] _textures){
            textures = _textures;
            rect = new Rectangle(0, 0, textures[0].Width, textures[0].Height);
        }

        int ITextureGroup.getNumFrames() { return textures.Length; }
        Texture2D ITextureGroup.getTexture(int index) { return textures[index]; }
        Rectangle ITextureGroup.getRect(int index) { return rect; }
    }
}
